<template>
  <div>
    <h1>{{word}}</h1> 
    <button @click="reverse">翻转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      word: 'Hello,World!',
      
    };
  },
  methods: {
    reverse(){
    this.word =  this.word.split('').reverse().join('')
     
    }
  },
};
</script>

<style >
</style>